package com.diankangwo.factory.service.impl;

import com.diankangwo.factory.dao.TdOnlinepaylogMapper;
import com.diankangwo.factory.entity.TdOnlinepaylog;
import com.diankangwo.factory.service.TdOnlinePayLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Service("TdOnlinePayLogService")
public class TdOnlinePayLogServiceImpl implements TdOnlinePayLogService {

    @Autowired
    private TdOnlinepaylogMapper tdOnlinepaylogMapper;

    @Override
    @Transactional
    public int deleteByPrimaryKey(Integer id) {
        return tdOnlinepaylogMapper.deleteByPrimaryKey(id);
    }

    @Override
    @Transactional
    public int insert(TdOnlinepaylog record) {
        return tdOnlinepaylogMapper.insert(record);
    }

    @Override
    @Transactional
    public int insertSelective(TdOnlinepaylog record) {
        return tdOnlinepaylogMapper.insert(record);
    }

    @Override
    public TdOnlinepaylog selectByPrimaryKey(Integer id) {
        return tdOnlinepaylogMapper.selectByPrimaryKey(id);
    }

    @Override
    @Transactional
    public int updateByPrimaryKeySelective(TdOnlinepaylog record) {
        return tdOnlinepaylogMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    @Transactional
    public int updateByPrimaryKey(TdOnlinepaylog record) {
        return tdOnlinepaylogMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<TdOnlinepaylog> queryList(Map<String, Object> map) {
        return tdOnlinepaylogMapper.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return tdOnlinepaylogMapper.queryTotal(map);
    }

    @Override
    public List<TdOnlinepaylog> queryByDay(String startTime, String endTime) {
        return tdOnlinepaylogMapper.queryByDay(startTime,endTime);
    }
}
